<?php


namespace App\Services;


use EasyWeChat\Factory;

class TemplateMessageService
{
    protected $app;

    public function __construct(array $config)
    {
        $this->app = Factory::miniProgram(array_merge(config('wechat.defaults'), $config));
    }


    public function send(array $data)
    {
        return $this->app->subscribe_message->send($data);
    }
}
